﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ershou.BLL;

public partial class grxx : System.Web.UI.Page
{
    int i = 0;
    yh yh1 = new yh();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["CustomerId"] == null)
        {
            Response.Redirect("~/dl.aspx");
        }
        string id = Session["CustomerId"].ToString();
        i = int.Parse(id);
        TextBox1.Text = yh1.select1(i);
        TextBox2.Text = yh1.select2(i);
        TextBox4.Text = DateTime.Parse(yh1.select3(i)).Year.ToString();
        TextBox5.Text = DateTime.Parse(yh1.select3(i)).Month.ToString();
        TextBox6.Text = DateTime.Parse(yh1.select3(i)).Day.ToString();
        TextBox7.Text = yh1.select4(i);
        TextBox8.Text = yh1.select5(i);
        TextBox9.Text = yh1.select6(i);
        Image1.ImageUrl = "~/Image/yh/"+yh1.select7(i);
        Label4.Text = "";
    }

    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        
    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            TextBox7.Text = yh1.select4(i);
        }
    }
}